package com.gold.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gold.exception.ServiceException;
import com.gold.model.StockLog;
import com.gold.persist.RepertoryMapper;
import com.gold.persist.StockLogMapper;
import com.gold.service.StockLogService;
import com.gold.util.Page;

@Service
public class StockLogServiceImpl implements StockLogService {

	@Resource
	StockLogMapper stockLogMapper;
	@Override
	public Page<Map> findByCondition(Page<Map> page) throws ServiceException {
		// TODO Auto-generated method stub
		page.setResults(stockLogMapper.findByCondition(page));
        page.setTotalRecord(stockLogMapper.findCountByCondition(page));
        return page;
	}
	@Override
	public boolean delete(Integer modelPK) throws ServiceException {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public boolean save(StockLog model) throws ServiceException {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public StockLog load(Integer modelPK) throws ServiceException {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<StockLog> findAll() throws ServiceException {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public int countAll() throws ServiceException {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public boolean update(StockLog model) throws ServiceException {
		// TODO Auto-generated method stub
		return false;
	}
}
